package com.sinven.entity;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * NideshopGoods entity. @author MyEclipse Persistence Tools
 */
/**
 * 李志伟
 * 反向生成
 */
@Entity
@Table(name = "nideshop_goods", catalog = "csf")
public class Goods implements java.io.Serializable {
    //商品ID
    private Integer id;
    //商品名称
    private String name;
    //品牌名称
    private Integer brandId;
    //商品数量
    private Integer goodsNumber;
    //商品信息
    private String goodsBrief;
    //添加时间
    private Timestamp addTime;
    //商品单位
    private String goodsUnit;
    //零售价格
    private Double retailPrice;
    //是否热销
    private Boolean isHot;
    //原始价格
    private Double marketPrice;

    // Constructors

    /** default constructor */
    public Goods() {

    }

    /** minimal constructor */
    public Goods(String name) {
        this.name = name;
    }

    /** full constructor */
    public Goods( String name,
                         Integer brandId, Integer goodsNumber, String goodsBrief,
                         Timestamp addTime, String goodsUnit,
                         Double retailPrice, Boolean isHot, Double marketPrice) {
        this.name = name;
        this.brandId = brandId;
        this.goodsNumber = goodsNumber;
        this.goodsBrief = goodsBrief;
        this.addTime = addTime;
        this.goodsUnit = goodsUnit;
        this.retailPrice = retailPrice;
        this.isHot = isHot;
        this.marketPrice = marketPrice;
    }


    @Id
    @GeneratedValue
    @Column(name = "id", unique = true, nullable = false)
    public Integer getId() {
        return this.id;
    }

    public void setId(Integer id) {
        this.id = id;
    }



    @Column(name = "name", nullable = false, length = 120)
    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Column(name = "brand_id")
    public Integer getBrandId() {
        return this.brandId;
    }

    public void setBrandId(Integer brandId) {
        this.brandId = brandId;
    }

    @Column(name = "goods_number")
    public Integer getGoodsNumber() {
        return this.goodsNumber;
    }

    public void setGoodsNumber(Integer goodsNumber) {
        this.goodsNumber = goodsNumber;
    }

    @Column(name = "goods_brief")
    public String getGoodsBrief() {
        return this.goodsBrief;
    }

    public void setGoodsBrief(String goodsBrief) {
        this.goodsBrief = goodsBrief;
    }

    @Column(name = "add_time", length = 0)
    public Timestamp getAddTime() {
        return this.addTime;
    }

    public void setAddTime(Timestamp addTime) {
        this.addTime = addTime;
    }

    @Column(name = "goods_unit", length = 45)
    public String getGoodsUnit() {
        return this.goodsUnit;
    }

    public void setGoodsUnit(String goodsUnit) {
        this.goodsUnit = goodsUnit;
    }

    @Column(name = "retail_price", precision = 10)
    public Double getRetailPrice() {
        return this.retailPrice;
    }

    public void setRetailPrice(Double retailPrice) {
        this.retailPrice = retailPrice;
    }

    @Column(name = "is_hot")
    public Boolean getIsHot() {
        return this.isHot;
    }

    public void setIsHot(Boolean isHot) {
        this.isHot = isHot;
    }

    @Column(name = "market_price", precision = 10)
    public Double getMarketPrice() {
        return this.marketPrice;
    }

    public void setMarketPrice(Double marketPrice) {
        this.marketPrice = marketPrice;
    }

}